<?php
namespace app\api\controller\v1;

use app\api\validate\TokenGet;
use app\api\model\User as UserModel;
use app\api\service\UserToken;

class Token{
    public function getToken($code=''){
        (new TokenGet())->goCheck();
        $ut = new UserToken($code);
        $token = $ut->get();
        return [
            'token' => $token
        ];
    }
}

?>